<?php

namespace app\model\not_del;

use think\Model;
use think\model\relation\HasMany;

/**
 * 因子表
 */
class RatingScaleFactorModel extends Model
{
    protected $name = 'rating_scale_factor';

    /**
     * 管理题目结果因子关系
     * @return HasMany
     */
    public function relatedQuestions(): HasMany
    {
        return $this->hasMany(RatingScaleQuestionRelatedFactorModel::class,'factor_id');
    }

    /**
     * 关联因子等级列表
     * @return HasMany
     */
    public function RatingScaleFactorLevel(): HasMany
    {
        return $this->hasMany(RatingScaleFactorLevelModel::class,'factor_id');
    }



}